// backend/api/data.js
const express = require('express');
const router = express.Router();

// 定义一个简单的接口
router.get('/data', (req, res) => {
    const data = {
        message: '这是来自后端的模拟数据',
        timestamp: new Date().toISOString()
    };
    res.json(data);
});

module.exports = router;